import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        String str="ANQNANBNQNANQNQNBNINQNQNANQNINANQNANBNQNANQNQNBNBNQNQNANQNINANQNANBNQNANQNQNBNINQNQNANQNINBNQNANBNQN";
        String[] arr=str.split("A");
        for(int i=0;i<arr.length;i++){
            System.out.println(arr[i].length());
        }
    }
    public static void main1(String[] args) {

        int count=0;
        long i=1;
        while(count<2024){
           if(isRight(i)){
               count++;
           }
           i++;
        }
        System.out.println(i-1);
    }
    public static boolean isRight(long num){
        for(int i=2;i<=num;i++){
            if(num%i==0&&2024%i==0){
                return false;
            }
        }
        return true;
    }
    public static boolean isNum(int num){
        for(int i=2;i<num;i++){
            if(num%i==0){
                return false;
            }
        }
        return true;
    }
    public static int number(int a,int b){
        int t=0;
        while(b!=0){
            t=a%b;
            a=b;
            b=t;
        }
        return a;
    }
}